{% extends "page_base.html" %}

{% block content %}
<a style="display:scroll;position:fixed;bottom:5px;right:250px;" href="#">Back to Top</a>

{% ifnotequal availability 'none' %}
	<div class='choice'>
	{% ifequal availability 'lecture' %}<h4>Organized by Lecture</h4>{% endifequal %}
		
	{% ifequal availability 'book' %}<h4>Organized by Book</h4>{% endifequal %}
		
	{% ifequal availability 'both' %} 
		{% ifequal choice 'lecture' %}
	<h4>Organized by Lecture | <a href="{{ title.get_absolute_url }}book/">Organized by Book</a></h4>
		{% else %} <h4><a href="{{ title.get_absolute_url }}lecture/">Organized by Lecture</a> | Organized by Book</h4>
		{% endifequal %}
	{% endifequal %}


	<div class="toc">
	{% ifequal choice 'lecture' %} {% include "courseTOCLecture.html" %}
	{% else %} {% include "book.html" %}
	{% endifequal %}
	</div>
	
{% endifnotequal %}
{% endblock %}

